package router

import (
	"gin-bms/api"
	"gin-bms/middleware"
	"github.com/gin-gonic/gin"
)

func InitApiRouter(Router *gin.RouterGroup) {
	ApiRouter := Router.Group("api").Use(middleware.OperationRecord())
	{
		ApiRouter.POST("createSysApi", api.CreateSysApi)   // 创建Api
		ApiRouter.POST("deleteSysApi", api.DeleteSysApi)   // 删除Api
		ApiRouter.POST("updateSysApi", api.UpdateSysApi)   // 更新api
		ApiRouter.POST("getSysApi", api.GetSysApi) 		   // 获取单条Api消息
		ApiRouter.POST("getSysApiList", api.GetSysApiList) // 获取Api列表
		ApiRouter.POST("getSysApiAll", api.GetSysApiAll)   // 获取所有api
	}
}
